package com.qf.mapper;

import com.qf.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    List<User> queryAll();
    User queryById(@Param("id") int id);
    User queryByCondition(@Param("id") int id,@Param("sex") String name);
    long totalCount();
    List<User> queryLike(String name);
    //新增
    void insert(User user);
    //修改
    void update(User user);
    //删除
    void delete(int id);


    List<User> queryByCondition1(Map<String, Object> map);
}
